package com.kuang.pojo.demo01;

public class Proxy implements Rent {
    private Host host;//组合的方法


    public Proxy(Host host) {
        this.host = host;
    }


    public Proxy() {
    }

    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        fare();

    }

    public void seeHouse(){
        System.out.println("中介现在带你去看房子了！");
    }

    public void fare(){
        System.out.println("代理收中介费了！");
    }

    public void hetong(){
        System.out.println("代理和你签租赁合同了！");
    }
}
